package cn.wicking.proxy.staticProxy;

public class Proxy implements Rent{

    private Rent rent;

    public Proxy() {
    }

    public Proxy(Rent host) {
        this.rent = host;
    }

    public void rent() {
        seeHouse();
        rent.rent();
        fare();
    }

    public void seeHouse(){
        System.out.println("看房！");
    }

    public void fare(){
        System.out.println("收中介费！");
    }
}
